import { createRouter, createWebHistory } from 'vue-router'

// 根据菜单数据生成路由配置
const routes = [
  {
    path: '/',
    redirect: '/dashboard'
  },
  // TODO: 根据实际菜单结构添加路由配置
  // 示例路由配置：
  {
    path: '/dashboard',
    name: 'Dashboard',
    component: () => import('@/views/Dashboard.vue')
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router